package stc.skymobi.netty.handler.codec.access.protocol.signal;

import stc.skymobi.bean.esb.core.AbstractEsbHeaderable;

public abstract class AbstractEsbT2ASignal extends AbstractEsbHeaderable implements EsbTerminal2AccessSignal {

    private short ack;
    private int encryptKey;

    @Override
    public short getAck() {
        return ack;
    }

    @Override
    public void setAck(short ack) {
        this.ack = ack;
    }

    public boolean checkIntegrity() {
        return true;
    }

    @Override
    public int getFlags() {
		return 0x0120;  //T2A   只有ua才可能变化
	}

    public int getEncryptKey() {
        return encryptKey;
    }

    public void setEncryptKey(int encryptKey) {
        this.encryptKey = encryptKey;
    }
}
